package com.myqm;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
@EnableTransactionManagement
@EnableScheduling
@MapperScan(basePackages="com.myqm.dao")
public class GsWeixinApplication extends SpringBootServletInitializer {
	
	 @Override
	    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
	        return application.sources(GsWeixinApplication.class);
	    }
	public static void main(String[] args) {
		 SpringApplication application = new SpringApplication(GsWeixinApplication.class); 
		// application.addListeners(new MsgPropertiesListener("sys-msg.properties"));
	     application.run(args);   
	}
}
